<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}

.t1 {
	border: 0px red solid;
	margin-left: 15%;
	padding-top: 10px;
}

.t2 {
	margin-left: 10%;
	font-size: 14px;
}

.t3 {
	margin-left: 7%;
	color: gray;
	font-size: 12px;
}

.t4 {
	height: 26px;
	line-height: 26px;
	padding: 0 10px 0 13px;
	background: #56bbeb;
	border-radius: 3px;
	color: #fff;
	font-size: 13px;
	font-weight: normal;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	margin-right: 20px;
	border: none;
}

.t5 {
	background: #e8e8e8;
	border: 0px red solid;
	height: 70px;
}

.t6 {
	padding-top: 20px;
	font-size: 18px;
	border-bottom: 1px solid #ccc;
}
.t7 {
	float: right;
	height: 26px;
	line-height: 26px;
	padding: 0 10px 0 13px;
	background: #0099FF;
	border-radius: 3px;
	color: #fff;
	font-size: 13px;
	font-weight: normal;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	margin-right: 20px;
}

p {
	padding-top: 30px;
	font-weight: bold;
	color: gray;
	font-size: 12px;
}
tr td{
	font-weight: bold;
	color: gray;
	font-size: 14px;
	padding-top: 30px;
}
input.queru{
	
	margin-left: 20px;
}
p, td, div {
    font: 12px Microsoft Yahei, "sans-serif", "Arial", "Verdana";
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加新商品</title>

</head>
<body>

	<div class="t5">
		<h1 class="t6">
			小熊猫 管理中心—添加新商品 <a href="BlockProductServlet?curpage=1&pagesize=5" class="t7">商品列表</a>
		</h1>

	</div>
	<div class="t1">

		<form action="ProductServlet" method="post" enctype="multipart/form-data">
		<table >
			<tr>
				<td>商品名称：</td>
				<td><input name="pname"></td>
				
			</tr>
			<tr>
				<td>商品货号：</td>
				<td><input name="hh"></td>
				<span class="t3">如果您不输入商品货号，系统将自动生成一个唯一的货号</span>
			</tr>
			<tr>
				<td>商品品牌：</td>
				<td><select name="brand" style="width: 100px">
					<option>请选择...</option>
					<c:forEach items="${list}" var="c">
					<option>${c.brandName}</option>	
					</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td>运营商：</td>
				<td><select name="operator">
					<option>请选择...</option>
					<option>全网通</option>
					<option>电信</option>
					<option>移动</option>
					<option>联通</option>
				</select></td>
			</tr>
			<tr>
				<td>本店售价：</td>
				<td><input name="price"></td>
			</tr>
			<tr>
				<td>商品颜色：</td>
				<td>
					<c:forEach items="${color}" var="cr">
					<input type="checkbox" name="color" class="queru" value="${cr.colorName}">${cr.colorName}
					</c:forEach>
				</td>
			</tr>
			<tr>
				<td>商品尺寸：</td>
				<td>
					<c:forEach items="${size}" var="sz">
					<input type="radio" name="size" class="queru" value="${sz.sizeName}">${sz.sizeName}
					</c:forEach>
				</td>
			</tr>
			<tr>
				<td>库存数量：</td>
				<td><input name="sticknumber"></td>
			</tr>
			<tr>
				<td>虚拟销量：</td>
				<td><input name="sellnumber"></td>
			</tr>
			<tr>
				<td>上传图片：</td>
				<td><input name="print" type="file" ></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="确定" class="t4" >
				 <input type="reset" value="重置" class="t4" ></td>
			</tr>
			
		</table>
	
		</form>
	</div>
</body>
</html>